package com.qfedu.controller;

import com.qfedu.pojo.resp.BaseResp;
import com.qfedu.service.CommentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/comment")
@Api(tags = "评论管理")
public class CommentController {

    @Autowired
    CommentService commentService;

    @GetMapping("/findAll")
    @ApiOperation(value = "查询全部评论及对应商品用户信息")
    public BaseResp findAll(@RequestParam("page")Integer page,@RequestParam("size")Integer size){
        return commentService.findAll(page,size);
    }
}
